<?php

class Index extends CI_Controller {
    
    public function __construct(){
        parent::__construct();
        $this->load->helper('url');
          
        $this->load->driver('minify');
        $csss = $this->minify->combine_directory('static/css/');
        $this->minify->save_file($csss,'static/min/minified.css');
        $jss =$this->minify->combine_directory('static/js/');
        $this->minify->save_file($jss,'static/min/minified.js');
    }
    
    public function index(){
        $this->load->view('template/header');
        $this->load->view('paginaInicial');
        $this->load->view('template/footer');       
    }
}
?>
